Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@xrb21 Hello, Great plugin :).
In this pull request, I added insertConfig parameter to HtmlEditor(), so we can disable/enable the insert toolbar.
For the value of that parameter, we can check the official documentation from summernote since I just parsing the list string and inject it into the initialization summer note javascript.
example:
we can use
['link','picture','vide','table']
I make the bottom toolbar hide/show too depends on how these parameters are set.
example:
if we use insertConfig: ['link'] the image bottom toolbar would be hidden since we didn't use 'image' for insertConfig.
NB: I change id "summernote" to "summernote-2" for preventing auto initialization, so we can make our own initialization with custom config.
This is how to use HtmlEditor after we merge this pull request
Related Issue #4 #8
Thanks.